average, so you need to add some pg
ceph osd pool set rbd pg_num 100 ceph osd pool set rbd pgp_num 100Add a Metadata Server
To use CephFS, you must include a metadata server to create the metadata service in the following ways:
ceph-deploy mds create mdsnodeAdd Ceph Mon
The extension of Mon is complicated, which may lead to errors in the entire cluster. Therefore, we recommend that you do not modify MON at the beginning.
The number of ceph monitors is 2n + 1 (n> = 0) (ODD), and at leas
metadata server to create the metadata service in the following ways:
ceph-deploy mds create mdsnodeAdd Ceph Mon
The extension of Mon is complicated, which may lead to errors in the entire cluster. Therefore, we recommend that you do not modify MON at the beginning.
The number of ceph monitors is 2n + 1 (n> = 0) (ODD), and at least three are online, as long as the number of normal nodes> = n + 1, the ceph paxos algorithm ensures the normal operation of the system. Therefore, only one of the thr
/then follow the above (1)-(3) operations and so on node1, 2, 3 osd each4. Create an mds instance and a file system(1) create a folder for storing mds data mkdir-p/var/lib/ceph/mds/ceph-node1/(2) generate the keyring of the Mds and use cephx to verify that this step requires ceph auth get-or-create mds. node1 mon 'Allow rwx 'ossd' allow * 'mds 'Allow * '-o/var/lib/ceph/mds/ceph-node1/keyring(4) Enable mmsd. node1/etc/init. d/ceph start mds. node1 and
clean environment: ceph-deploypurgedataserver-236 server-227ceph-deployforgetkeysceph-deploypurgeserver-236server-227 Create a Ceph cluster:ceph-deploynewserver-117server-236server-227# Where server-117 is Mon-node, you can specify more than one mon-node after the command execution completes, some auxiliary files are synthesized in the current directory, where the ceph.conf default content is as follows:[global]fsid= 23078e5b-3f38-4276-b2ef-7514a7fc09ffmon_initial_members=server-117mon_host= 10
Info fooRBD Info {Pool-name}/{image-name}RBD Info Test/foo4. Adjust the size of the block device imageRBD Resize--size test/foo--allow-shrink SmallRBD Resize--size 4096 Test/foo 5. Remove block devicesRBD RM Test/fooKernel module operation1. Mapping Block devicessudo rbd map {pool-name}/{image-name}--id {User-name}sudo rbd map test/foo2--id adminIf you enable CEPHX authentication, you also need to specify the keysudo rbd map test/foo2--id admin--key
version is 0.20.1). Compile the code in a conventional way. 3. Configure the CEpH Cluster
Except the client, all other nodes need a configuration file, which must be exactly the same. 3.1 CEpH. config
This file is located under/etc/CEpH. If the prefix is not modified in./configure, it should be in/usr/local/etc/CEpH.
[Root @ ceph_mds CEpH] # Cat CEpH. conf ;; Sample CEpH. conf file.;; This file defines cluster membership, the various locations; That CEpH stores data, and any other run
RBD map to mount the device, and then MKFS to format it with the following results:[Email protected]:/etc/ceph# rbd ls iscsiiscsi-rbd[email protected]:/etc/ceph# RBD showmappedid pool image Snap Device 1 iSCSI ISCSI-RBD- /dev/rbd1 mkfs.xfs/dev/rbd1Modify the/etc/init.d/rbdmap, change the/etc/rbdmap to the actual path of your rbdmap, and then write the Mount information to/etc/ceph/rbdmap (my Rbdmap path):[Email protected]:/etc/ceph# cat/etc/ceph/rbdmap# rbddeviceparameters#poolname/
to none, the original default is Cephx, which means to pass the certification, Here I do not need authentication, so set to none.The OSD pool default size is the number of replicas, I only configure two copies, so set to 2.Public network is a common network, is the network between the OSD communication, the proposed setting, if not set, the following may execute the command when there is warning message, this parameter is actually your Mon node IP la
Contact Us
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.